package org.example.webserver.dao;

import org.example.webserver.pojo.Order;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderDao extends JpaRepository<Order,Long> {
    List<Order> findByBuyerid(Long id);
    List<Order> findByCommodityid(Long id);
    List<Order> findByMerchantid(Long id);
}
